package summer_vacation.lvchang.myyVacation;

/**
 * Created by Administrator on 2015/9/7.
 */
public class Text29 {
    public static void main(String[] args){
        System.out.println("输出100~10000之间个位数为3的所有素数：");
        boolean f;
        for(int i = 103; i < 10000; i = i + 10){
            f = true;
            for(int j = 2; j < i; j++){
                if(i % j == 0){
                    f = false;
                    break;
                }
            }
            if(f){
                System.out.print(i + " ");
            }
        }
    }
}

